package com.aacar.dao.impl;

import com.aacar.dao.MemberDao;
import com.aacar.dao.ProductDao;
import com.aacar.dao.base.CommonBaseDao;
import com.aacar.dto.ProductDto;
import com.aacar.entity.Member;
import com.aacar.entity.Product;
import com.aacar.vo.ProductVo;
import com.aacar.vo.UserInfoVo;
import com.aacar.vo.UserVo;
import org.springframework.stereotype.Repository;

@Repository("productDao")
public class ProductDaoImpl extends CommonBaseDao<Product, String> implements ProductDao {

	private static final String nameSpace = "com.aacar.dao.ProductDao.";

	@Override
	public Product getProduct(Product product) {
	    return this.getSqlSession().selectOne(nameSpace.concat("getProduct"), product);
	}

	@Override
	public Product getUserRankPrice(Product product) {
		return this.getSqlSession().selectOne(nameSpace.concat("getUserRankPrice"), product);
	}

	@Override
	public Product getBookPrice(Product product) {
		return this.getSqlSession().selectOne(nameSpace.concat("getBookPrice"), product);
	}

	@Override
	public Product getEnjoyPrice(Product product) {
		return this.getSqlSession().selectOne(nameSpace.concat("getEnjoyPrice"), product);
	}


}
